﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CompanyList.ascx.cs" Inherits="Job.Web.userControls.common.CompanyList" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<table runat="server" visible="false" id="msgTab" width="80%" align="center">
    <tr>
        <td height="30px" align="center" runat="server" id="msgTd" valign="middle"></td>
    </tr>    
</table>

<asp:GridView ID="CompanyGrid" runat="server" CssClass="table_style1" Width="100%" 
    AutoGenerateColumns="False" onrowdatabound="CompanyGrid_RowDataBound">
    <HeaderStyle CssClass="table_style1_th" />
    <SelectedRowStyle BackColor="#EAECEC"/>
    <AlternatingRowStyle BackColor="#F6F6F6" />
  
    <Columns>
        <asp:TemplateField HeaderText="公司名称">
            <ItemTemplate>
                <asp:HyperLink ID="hlCompany" runat="server" Target="_blank"><%#DataBinder.Eval(Container.DataItem, "company_name")%></asp:HyperLink>
                <asp:Label ID="lbCompanyId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"company_info_id")%>' Visible="false"></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="40%" />
        </asp:TemplateField>

        <asp:TemplateField HeaderText="注册日期">
            <ItemTemplate>
                <asp:Label ID="lbRegistDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"regist_date","{0:yyyy-MM-dd}")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="15%" />
        </asp:TemplateField>        
        
        <asp:TemplateField HeaderText="公司性质">
            <ItemTemplate>
                <asp:Label ID="lbProperty" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "company_property")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="15%" />
        </asp:TemplateField>           

        <asp:TemplateField HeaderText="联系人">
            <ItemTemplate>
                <asp:Label ID="lbContactMane" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "contact_man")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="10%" />
        </asp:TemplateField>            
        
        <asp:TemplateField HeaderText="联系方式">
            <ItemTemplate>
                <asp:Label ID="lbPhone" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"contact_phone")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="left"/>
        </asp:TemplateField>   
 
    </Columns>
</asp:GridView>


<webdiyer:AspNetPager ID="pagerButtom" runat="server" 
	ButtonImageNameExtension="n" ButtonImageExtension=".gif" 
        DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
		PagingButtonSpacing="10px" ButtonImageAlign="left" 
		onpagechanged="pagerButtom_PageChanged" CssClass="pagination" 
		CurrentPageButtonClass="current" PagingButtonClass=""
		PagingButtonLayoutType="Span">
</webdiyer:AspNetPager>

<br />										  
<br />		